<?php
$this->breadcrumbs = array(
    'Login'
);
$form = $this->beginWidget('CActiveForm', array(
    'id' => 'login-form',
    'enableClientValidation' => true,
    'htmlOptions' => array(
        'class' => 'form-horizontal'
    ),
    'clientOptions' => array(
        'validateOnSubmit' => true,
    ),
        ));

?>
<div class="control-group">
    <?php echo $form->label($model, 'username', array('class' => 'control-label')); ?>
    <div class="controls">
        <?php echo $form->textField($model, 'username'); ?>
        <?php echo $form->error($model, 'username'); ?>
    </div>
</div>
<div class="control-group">
    <?php echo $form->label($model, 'password', array('class' => 'control-label')); ?>
    <div class="controls">
        <?php echo $form->passwordField($model, 'password'); ?>
        <?php echo $form->error($model, 'password'); ?>
    </div>
</div>
<span> <?php echo CHtml::link('Forget Password?', $this->createurl('/forgetPassword')); ?></span>
<?php echo CHtml::submitButton('', array('class' => 'btn btn-primary', 'value' => 'Submit')); ?>
<div>
    Do not have an account? <span class="Login_a"><?php echo CHtml::link('Click Here', $this->createurl('/site/sign')); ?></span> to Create one.
</div>
<?php $this->endWidget(); ?>